import IOperations.Addition;
import IOperations.Division;
import IOperations.Multiplication;
import IOperations.Subtraction;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Menu.start();
        while(true) {
            Menu.menu();
            int choice=scanner.nextInt();
            switch (choice) {
                case 1:
                    Addition.work();
                    break;
                case 2:
                    Subtraction.work();
                    break;
                case 3:
                    Multiplication.work();
                    break;
                case 4:
                    Division.work();
                    break;
                case 0:
                    return;
                default:
                    System.out.println("输入错误，请重新输入");
            }
        }
    }
}
